//引入express模块
const express = require("express")

// 创建一个路由
const route = express.Router()

// 引入token校验中间件
const isLoginMiddle = require("../middleware/isLoginMiddle")

//设置权限校验的路由
route.get("/isLogin", isLoginMiddle, async (req, res) => {
    res.send({
        code: 10000,
        msg: "ok",
        data: null
    })
})

//暴露路由
module.exports = route